<template>
  <vue-office-docx
    :src="docx"
    style="height: 100vh"
    @rendered="renderedHandler"
    @error="errorHandler"
  />
</template>
<script setup>
import VueOfficeDocx from "@vue-office/docx";

import "@vue-office/docx/lib/index.css";

const docx = "http://static.shanhuxueyuan.com/test6.docx";

const renderedHandler = () => {
  console.log("rendered");
};
const errorHandler = () => {
  console.log("error");
};
</script>
<style scoped lang="scss"></style>
